package com.boboPlanet.comm.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author mis_wu
 * @date 2022/6/18 15:36
 * @todo feign调用错误枚举
 */
@AllArgsConstructor
@NoArgsConstructor
public enum FeignErrorEnum implements IEnum {

    FEIGN_SERVE_ERROR("10001","feign服务调用失败"),
    FEIGN_USER_LOGIN_FAIL("10002","用户登录失败"),
    SEND_SMS_CODE_FAIL("10003","发送短信验证码失败"),
    SEND_EMAIL_CODE_FAIL("10004","发送邮箱验证码失败"),

    FEIGN_GET_CONFIG_FAIL("10005","获取基础配置字段失败"),
    FEIGN_ADD_LOG_ERROR("10006","添加日志失败..."),
    FEIGN_GET_LOG_ERROR("10006","添加日志失败..."),

    FEIGN_USER_AUTH_ERROR("10007","获取用户认证失败"),
    ;


    private String code;
    private String desc;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public Serializable getValue() {
        return this.code;
    }
}
